<!--  -->
<template>
  <div>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="id" label="编号" width="100" />
      <el-table-column prop="username" label="账号" width="180" />
      <el-table-column prop="nickName" label="姓名" width="180" />
      <el-table-column prop="email" label="邮箱" />
      <el-table-column prop="createTime" label="添加时间" />
      <el-table-column prop="loginTime" label="最后登录" />
      <el-table-column prop="stasus" label="是否启用" width="100" />
      <el-table-column label="操作" width="100" />
    </el-table>
  </div>
</template>

<script lang='ts' setup>
import { reactive, toRefs, ref } from "vue";
import { getAdminLists } from "../../request/api";
const state = reactive<{
  tableData: {}[];
}>({
  tableData: [],
});
const { tableData } = toRefs(state);
getAdminLists({
  keyword: "",
  pageSize: 10,
  pageNum: 1,
}).then((res) => {
  if (res.code == 200) {
    tableData.value = res.data.list;
  }
});
</script>

<style lang='less' scoped>
</style>